﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameCore;
using GameObject;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace ResourceManager
{
    public class ActionButtonManager : ButtonManager
    {
        public override void InitPrototype()
        {
            _nprototype = ResourceDefine.l_ActionButton_strsource.Count<string[]>();
            _prototype = new ActionButton[_nprototype];

            for (int i = 0; i < _nprototype; i++)
            {
                _prototype[i] = new ActionButton();
                ((ActionButton)_prototype[i]).Init(1, ResourceDefine.l_ActionButton_strsource[i],
                    ResourceDefine.wait_resource, GlobalDefine.Content.Load<SpriteFont>(@"Font\Arial"));
            }
        }
    }
}
